package com.quanshu.shop.goods.entity;

import java.io.Serializable;
import java.util.List;

import lombok.Data;

/**
 * 作者  李哲
 * 创建时间 2018/7/30
 * 邮箱 lizhetongliao@163.com
 * 说明
 **/
@Data
public class MyCartEntity implements Serializable {
    /**
     * serviceSum : 96
     * GP_pay : 0
     * GP_sum : 0
     * niuScore_sum : 0
     * niuScore_pay : 0
     * final_sum : 96
     * full_reduce : 0
     * full_sum : 48
     * sum : 96
     * goodsList : [{"gp_price":"0.00","niu_score":"0.00","sell_price":"12.00","cost_price":"12.00","weight":"0.00","market_rmb":null,"product_id":"1","spec_array":"[{\"id\":\"1\",\"type\":\"1\",\"value\":\"红色\",\"name\":\"颜色\",\"tip\":\"红色\"},{\"id\":\"2\",\"type\":\"1\",\"value\":\"ML\",\"name\":\"大小\",\"tip\":\"ML\"}]","goods_id":"1","store_nums":"100","goods_no":"SD153199987629-1","freight":"12","name":"测试商品1","exp":"0","img":"upload/2018/07/10/20180710042303715.jpg","is_active":"1","seller_id":"0","reduce":0,"count":3,"is_service":1,"payment_options":0,"sum":72,"count_gp":0,"count_score":0,"count_rmb":0,"goods_type":"product"},{"gp_price":"0.00","niu_score":"0.00","sell_price":"12.00","cost_price":"34.00","weight":"0.00","market_rmb":null,"product_id":"2","spec_array":"[{\"id\":\"1\",\"type\":\"1\",\"value\":\"黑色\",\"name\":\"颜色\",\"tip\":\"黑色\"},{\"id\":\"2\",\"type\":\"1\",\"value\":\"ML\",\"name\":\"大小\",\"tip\":\"ML\"}]","goods_id":"1","store_nums":"100","goods_no":"SD153199987629-2","freight":"12","name":"测试商品1","exp":"0","img":"upload/2018/07/10/20180710042303715.jpg","is_active":"1","seller_id":"0","reduce":0,"count":1,"is_service":1,"payment_options":0,"sum":24,"count_gp":0,"count_score":0,"count_rmb":0,"goods_type":"product"}]
     * count : 4
     */

    public String serviceSum;
    public String GP_pay;
    public String GP_sum;
    public String niuScore_sum;
    public String niuScore_pay;
    public String final_sum;
    public String full_reduce;
    public String full_sum;
    public String sum;
    public String count;
    public List<GoodsListEntity> goodsList;

    @Data
    public static class GoodsListEntity implements Serializable {
        /**
         * gp_price : 0.00
         * niu_score : 0.00
         * sell_price : 12.00
         * cost_price : 12.00
         * weight : 0.00
         * market_rmb : null
         * product_id : 1
         * spec_array : [{"id":"1","type":"1","value":"红色","name":"颜色","tip":"红色"},{"id":"2","type":"1","value":"ML","name":"大小","tip":"ML"}]
         * goods_id : 1
         * store_nums : 100
         * goods_no : SD153199987629-1
         * freight : 12
         * name : 测试商品1
         * exp : 0
         * img : upload/2018/07/10/20180710042303715.jpg
         * is_active : 1
         * seller_id : 0
         * reduce : 0
         * count : 3
         * is_service : 1
         * payment_options : 0
         * sum : 72
         * count_gp : 0
         * count_score : 0
         * count_rmb : 0
         * goods_type : product
         */

        public String gp_price;
        public String niu_score;
        public String sell_price;
        public String cost_price;
        public String weight;
        public Object market_rmb;
        public String product_id;
        public String spec_array;
        public String goods_id;
        public String store_nums;
        public String goods_no;
        public String freight;
        public String name;
        public String exp;
        public String img;
        public String is_active;
        public String seller_id;
        public String reduce;
        public String count;

        public void setIs_service(String is_service) {
            if (is_service == null) {
                this.is_service = "";
            } else {
                this.is_service = is_service;
            }
        }

        public String is_service;

        public void setPayment_options(String payment_options) {
            if (payment_options == null) {
                this.payment_options = "";
            } else {
                this.payment_options = payment_options;
            }

        }

        public String payment_options;
        public String sum;
        public String count_gp;
        public String count_score;
        public String count_rmb;
        public String goods_type;
    }
}
